<script setup lang="ts">
import { ref } from 'vue';


var city="北京";
var user={"name":"张三","age":114514,"gender":"male"}
const cnt=ref(0);
function count(){
    cnt.value++;
    console.log(cnt.value);
}

</script>
<template>
    <h3>{{ city }}</h3>
    <h3>{{user.name}}</h3>
    <input type="button" @click="count" value="点我">{{ cnt }}</input>
</template>